// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /captcha/check */
export async function check(body: API.CaptchaVO, options?: { [key: string]: any }) {
  return request<API.ResponseModel>('/captcha/check', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /captcha/get */
export async function get(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getParams,
  options?: { [key: string]: any }
) {
  return request<API.ResponseModel>('/captcha/get', {
    method: 'GET',
    params: {
      // type has a default value: slide
      type: 'slide',
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /captcha/get */
export async function get1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.get1Params,
  options?: { [key: string]: any }
) {
  return request<API.ResponseModel>('/captcha/get', {
    method: 'POST',
    params: {
      // type has a default value: slide
      type: 'slide',
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /captcha/image */
export async function getImageCaptcha(options?: { [key: string]: any }) {
  return request<any>('/captcha/image', {
    method: 'GET',
    ...(options || {}),
  })
}
